export const SignupTypes = {
  GET_REQUEST: "signup/GET_REQUEST",
  GET_SUCCESS: "signup/GET_SUCCESS",
  GET_FAILURE: "signup/GET_FAILURE",
};

export const LoginTypes = {
  GET_REQUEST: "login/GET_REQUEST",
  GET_SUCCESS: "login/GET_SUCCESS",
  GET_FAILURE: "login/GET_FAILURE",
};

export const AuthTypes = {
  CHECK_AUTH: "auth/CHECK_AUTH",
  GET_SUCCESS: "auth/GET_SUCCESS",
  GET_FAILURE: "auth/GET_FAILURE",
  // LOGOUT
  GET_LOGOUT_SUCCESS: "auth/GET_LOGOUT_SUCCESS",
  GET_LOGOUT_REQUEST: "auth/GET_LOGOUT_REQUEST",
};

export const ArticleTypes = {
  // 获取文章列表
  GET_LIST_REQUEST: "article/GET_LIST_REQUEST",
  GET_LIST_SUCCESS: "article/GET_LIST_SUCCESS",
  GET_LIST_FAILURE: "article/GET_LIST_FAILURE",
  // 发布文章
  PUBLISH_REQUEST: "article/PUBLISH_REQUEST",
  PUBLISH_SUCCESS: "article/PUBLISH_SUCCESS",
  PUBLISH_FAILURE: "article/PUBLISH_FAILURE",
  // 编辑文章
  EDIT_REQUEST: "article/EDIT_REQUEST",
  EDIT_SUCCESS: "article/EDIT_SUCCESS",
  EDIT_FAILURE: "article/EDIT_FAILURE",
};

export const AskTypes = {
  // 获取问题列表
  QUESTION_LIST_REQUEST: "ask/QUESTION_LIST_REQUEST",
  QUESTION_LIST_FAILURE: "ask/QUESTION_LIST_FAILURE",
  QUESTION_LIST_SUCCESS: "ask/QUESTION_LIST_SUCCESS",

  // 获取问题详情
  QUESTION_DETAIL_REQUEST: "ask/QUESTION_DETAIL_REQUEST",
  QUESTION_DETAIL_REQUEST: "ask/QUESTION_DETAIL_FAILURE",
  QUESTION_DETAIL_SUCCESS: "ask/QUESTION_DETAIL_SUCCESS",

  // 发布问题
  QUESTION_PUBLISH_REQUEST: "ask/QUESTION_PUBLISH_REQUEST",
  QUESTION_PUBLISH_FAILURE: "ask/QUESTION_PUBLISH_FAILURE",
  QUESTION_PUBLISH_SUCCESS: "ask/QUESTION_PUBLISH_SUCCESS",

  // 编辑问题
  QUESTION_EDIT_REQUEST: "ask/QUESTION_EDIT_REQUEST",
  QUESTION_EDIT_FAILURE: "ask/QUESTION_EDIT_FAILURE",
  QUESTION_EDIT_SUCCESS: "ask/QUESTION_EDIT_SUCCESS",
};

export const AnswerTypes = {
  // 获取回答列表
  ANSWER_LIST_REQUEST: "answer/ANSWER_LIST_REQUEST",
  ANSWER_LIST_FAILURE: "answer/ANSWER_LIST_FAILURE",
  ANSWER_LIST_SUCCESS: "answer/ANSWER_LIST_SUCCESS",

  // 发布回答
  ANSWER_PUBLISH_REQUEST: "answer/ANSWER_PUBLISH_REQUEST",
  ANSWER_PUBLISH_FAILURE: "answer/ANSWER_PUBLISH_FAILURE",
  ANSWER_PUBLISH_SUCCESS: "answer/ANSWER_PUBLISH_SUCCESS",
};
